package tool;

import java.util.Date;

import param.Param;

public class GetId {
	
	public static long getId(long id){
		long  nid = Long.parseLong(Param.FORMAT3.format(new Date())+"0001");
		String snid = id+"";
		String date = snid.substring(0, 8);
		System.out.println(date);
		if (date.equals(Param.FORMAT3.format(new Date()))) {
			nid = Long.parseLong(snid)+1;
			System.out.println(nid);
			return nid;
		} else {
			return nid;
		}
	}

}
